<template>
    <div name="home">
        <p>商品详情：{{ $route.params.id }}</p>
    </div>
</template>

<script>
export default {
    props: ['id'],
    created() {
        console.log('this.$route', this.id);
    },
};
</script>
